<template>
 <div class="">
        我是test  {{ many }}
        <el-button type="primary" @click="queryParentVueEmit"></el-button>
 </div>
</template>
 
<script setup lang="ts">
import { ref,defineEmits,defineProps ,defineExpose} from 'vue';
// 在子组件定义  谁引用子组件 谁写
// 子组件与父组件通信
const $emit = defineEmits(['xxxx'])

const queryParentVueEmit = ()=>{
    $emit('xxxx','je;;p')
}

const prop = defineProps(["many"])


let money = ref('520')

defineExpose({
    money
})
</script>
 
<style scoped lang="scss">
</style>